{extend name="mainadmin@layouts/base" /}
{block name="main" }
<header class="header  b-b clearfix">
    <div class="page-breadcrumbs">
        <ul class="breadcrumb">
            <li>
                <i class="fa fa-ellipsis-v"></i>
                <strong>直播配置</strong>
            </li>
        </ul>

    </div>
</header>
<form class="form-horizontal form-validate form-modal form_vbox" method="post" action="{:url('save')}">
    <section class="vbox">
        <section class="scrollable  wrapper w-f">
            <section class="panel panel-default">
                <header>
                    <ul class="nav nav-tabs">
                        <li class="active"><a href="#basic" data-toggle="tab">基本配置</a></li>
                        <li><a href="#payment" data-toggle="tab">敏感词设置</a></li>
                    </ul>
                </header>

                <div class="tab-content">
                    <div class="tab-pane active" id="basic">
                        <div class="widget-body">

                            <div class="form-group ">
                                <label class="control-label">腾讯云 SDKAPPID：</label>
                                <div class="controls">
                                    <input type="text" name="tx_SDKAppID" id="tx_SDKAppID" class="input-xlarge" data-rule-required="true"
                                           data-rule-required="true"   value="{$setting.tx_SDKAppID}">
                                    <span class="maroon">*</span></div>
                            </div>
                            <div class="form-group ">
                                <label class="control-label">腾讯云 secretKey：</label>
                                <div class="controls">
                                    <input type="text" name="tx_secretKey" id="tx_secretKey" class="input-xlarge" data-rule-required="true"
                                           data-rule-required="true"   value="{$setting.tx_secretKey}">
                                    <span class="maroon">*</span></div>
                            </div>
                            <div class="form-group ">
                                <label class="control-label">腾讯云推流地址：</label>
                                <div class="controls">
                                    <input type="text" name="tx_push_url" class="input-xlarge" data-rule-required="true"
                                           value="{$setting.tx_push_url}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="control-label">腾讯云拉流地址：</label>
                                <div class="controls">
                                    <input type="text" name="tx_pull_url" class="input-xlarge"
                                           data-rule-required="true" value="{$setting.tx_pull_url}">
                                    <span class="maroon">*</span></div>
                            </div>
                            <div class="form-group">
                                <label class="control-label">直播间背景图：</label>
                                <div class="col-sm-10 ">
                                    <div class="defUpImgBox" data-toggle="uploaderOne" >
                                        <img  src="{$setting.live_room_bg}">
                                        <input  type="hidden"  name="live_room_bg"  value="{$setting.live_room_bg}">
                                        <div class="tips">点击上传</div>
                                    </div>
                                </div>
                            </div>
                        </div>

                    </div>
                    <div class="tab-pane " id="payment">
                        <div class="form-group">
                            <label class="control-label">敏感词：</label>
                            <div class="col-sm-10">
                                <textarea name="live_sensitive" style="width: 70%;height: 100px;">{$setting.live_sensitive}</textarea>
                                <div class="help-inline">
                                    <span class="red">每个词中间请用","(英文逗号字符)进行隔开</span><br>
                                </div>
                            </div>
                        </div>
                    </div>

                </div>
            </section>
        </section>
        <footer class="footer bg-white b-t p-t">
            <div class="form-group">
                <div class="col-sm-4 col-sm-offset-1">
                    <button type="submit" class="btn btn-primary js_save_submit" data-loading-text="保存中...">保存</button>
                    <button type="button" class="btn btn-default" data-toggle="back">取消</button>
                </div>
            </div>
        </footer>
    </section>
</form>
{/block}
